﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MyEditor
{
    /// <summary>
    /// 对话类型
    /// </summary>
    public enum DialogueType
    {
        Bottom = 0,    //底部栏对话
        Bubble = 1,    //气泡对话框
        BigPanel = 2,  // 大面板（过渡旁白或者大提示）
        Anim = 3,      // 动画过场

    }

    /// <summary>
    /// 对话基类
    /// </summary>
    public abstract class DialogueBase
    {

        public DialogueType dialogueType;

        public static string GetTypeName(DialogueType type)
        {
            switch (type)
            {
                case DialogueType.Bottom:
                    return "底部对话栏";
                case DialogueType.Bubble:
                    return "气泡对话框";
                case DialogueType.BigPanel:
                    return "大面板";
                case DialogueType.Anim:
                    return "动画过场";
            }
            return "未定义类型";
        }


        public virtual string GetDialogueName()
        {
            return DialogueBase.GetTypeName(dialogueType);
        }
    }
}

